﻿using Habanero.BO;

namespace FireStarterModeller.Logic
{
// ReSharper disable InconsistentNaming
    public abstract class FMDataStore
    {

        public static DataStoreInMemory FMDataStoreInMemory { get; private set; }
// ReSharper restore InconsistentNaming

        public static void Reset()
        {
            FMDataStoreInMemory = new DataStoreInMemory();
            ResetDataAccessor();
            BORegistry.BusinessObjectManager.ClearLoadedObjects();
        }

        public static void ResetDataAccessor()
        {
            BORegistry.DataAccessor = new NonValidatingDataAccessorInMemory(FMDataStoreInMemory);
        }

    }
/*    /// <summary>
    /// This is a sub class of <see cref="BusinessObjectManager"/>.
    /// 
    /// </summary>
    internal class BusinessObjectManagerSub: BusinessObjectManager
    {
    }*/
}